<?php 
/* SVN FILE: $Id$ */
/* Texto Test cases generated on: 2010-03-09 18:13:03 : 1268158383*/
App::import('Model', 'Texto');

class TextoTestCase extends CakeTestCase {
	var $Texto = null;
	var $fixtures = array('app.texto', 'app.usuario', 'app.secao');

	function startTest() {
		$this->Texto =& ClassRegistry::init('Texto');
	}

	function testTextoInstance() {
		$this->assertTrue(is_a($this->Texto, 'Texto'));
	}

	function testTextoFind() {
		$this->Texto->recursive = -1;
		$results = $this->Texto->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Texto' => array(
			'id'  => 1,
			'titulo'  => 'Lorem ipsum dolor sit amet',
			'texto'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'usuario_id'  => 1,
			'secao_id'  => 1,
			'created'  => '2010-03-09 18:13:03',
			'modified'  => '2010-03-09 18:13:03'
		));
		$this->assertEqual($results, $expected);
	}
}
?>